﻿// See https://aka.ms/new-console-template for more information
using CodeMap;

Console.WriteLine("Hello, World!");


//代码模板
//模板编译
//生成路径

RunViewModel rvm = new RunViewModel();

rvm.moduleName = "MeioWmsSetting";
rvm.nowDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
rvm.Desc = "测试";
rvm.tableName = "student";

rvm.columns = new List<RunViewModelColumn>();
RunViewModelColumn rvc = new RunViewModelColumn();
rvc.columnDesc = "字段1";
rvc.columnName = "name";
rvc.entityType = "string";
rvc.entityName = "Name";
rvm.columns.Add(rvc);
RunViewModelColumn rvc1 = new RunViewModelColumn();
rvc1.columnDesc = "字段2";
rvc1.columnName = "name2";
rvc1.entityType = "string";
rvc1.entityName = "Name2";
rvm.columns.Add(rvc1);


CodeRun cr =new CodeRun();

cr.run("Student", rvm);